<template>
  <div>
    <p>子组件</p>
    <p>{{ count }}</p>
  </div>
</template>

<script setup>
import { ref } from 'vue'

const count = ref(100)

const add = () => {
  count.value++
}

defineExpose({
  add,
  count
})
</script>
